package com.study.pojo;

import java.util.Objects;

/**
 * @PackgeName: com.study.pojo
 * @ClassName: CountryInfo
 * @Author: 严志祥
 * Date: 2022-05-04 15:39
 * project name: web_project_medal
 * @Version:
 * @Description:
 */
public class CountryInfo {
    private String countryCode;
    private String countryNameCn;
    private String countryNameEn;
    private String countryUri;
    private String countryName;

    public CountryInfo() {
    }

    public CountryInfo(String countryNameCn, String countryNameEn, String countryUri, String countryName) {
        this.countryNameCn = countryNameCn;
        this.countryNameEn = countryNameEn;
        this.countryUri = countryUri;
        this.countryName = countryName;
    }

    public CountryInfo(String countryCode, String countryNameCn, String countryNameEn, String countryUri, String countryName) {
        this.countryCode = countryCode;
        this.countryNameCn = countryNameCn;
        this.countryNameEn = countryNameEn;
        this.countryUri = countryUri;
        this.countryName = countryName;
    }

    public String getCountryCode() {
        return countryCode;
    }

    public void setCountryCode(String countryCode) {
        this.countryCode = countryCode;
    }

    public String getCountryNameCn() {
        return countryNameCn;
    }

    public void setCountryNameCn(String countryNameCn) {
        this.countryNameCn = countryNameCn;
    }

    public String getCountryNameEn() {
        return countryNameEn;
    }

    public void setCountryNameEn(String countryNameEn) {
        this.countryNameEn = countryNameEn;
    }

    public String getCountryUri() {
        return countryUri;
    }

    public void setCountryUri(String countryUri) {
        this.countryUri = countryUri;
    }

    public String getCountryName() {
        return countryName;
    }

    public void setCountryName(String countryName) {
        this.countryName = countryName;
    }

    @Override
    public String toString() {
        return "CountryInfo{" +
                "countryCode='" + countryCode + '\'' +
                ", countryNameCn='" + countryNameCn + '\'' +
                ", countryNameEn='" + countryNameEn + '\'' +
                ", countryUri='" + countryUri + '\'' +
                ", countryName='" + countryName + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        CountryInfo that = (CountryInfo) o;
        return Objects.equals(countryCode, that.countryCode) && Objects.equals(countryNameCn, that.countryNameCn) && Objects.equals(countryNameEn, that.countryNameEn) && Objects.equals(countryUri, that.countryUri) && Objects.equals(countryName, that.countryName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(countryCode, countryNameCn, countryNameEn, countryUri, countryName);
    }
}
